package com.extendsdemo3;

/**
 * @Auther: shiquan
 * @Date: 2024/10/20 - 10 - 20 -17:45
 */
public class Teacher extends Person {
    private double salary;


    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void teach(){
        System.out.println("老师在教书");
    }






}
